package _10_formwork_method_pattern.v2_0;

/**
 * @Description: 扩展后的H2悍马
 * @Auther: 2019/6/15 19:15 by zhang.jy
 */
public class HummerH2Model extends HummerModel {
	protected void alarm() {
		System.out.println("悍马H2鸣笛...");
	}

	protected void engineBoom() {
		System.out.println("悍马H2引擎声音是这样的...");
	}

	protected void start() {
		System.out.println("悍马H2发动...");
	}

	protected void stop() {
		System.out.println("悍马H2停车...");
	}

	//默认没有喇叭的
	protected boolean isAlarm() {
		return false;
	}

}